﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test1
{
    class Student
    {
        //1、学生类：学号、姓名、年龄
        public int no { get; set; }
        public string name { get; set; }
        public int age { get; set; }

        public Student(int no, string name, int age)
        {
            this.no = no;
            this.name = name;
            this.age = age;
        }

        public void stuInfo() {
            Console.WriteLine("学号:{0},姓名:{1},年龄{2}",this.no,this.name,this.age);
        }
        public override string ToString()
        {
            return $"学号:{this.no},姓名:{this.name},年龄{this.age}";
        }

    }

    
    
}
